package com.currency.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName(value = "wyt_currency_trade_serial")
@Api(value = "WytCurrencyTradeSerial", tags = "订单交易记录")
public class WytCurrencyTradeSerial {
    @ApiModelProperty(value = "交易流水id")
    @TableId(value = "trade_id")
    private String tradeId;

    @ApiModelProperty(value = "交易发起的用户id")
    @TableField(value = "user_id")
    private String userId;

    @ApiModelProperty(value = "交易类型 1-支付  2-提现")
    @TableField(value = "trade_type")
    private Integer tradeType;

    @ApiModelProperty(value = "交易备注（例如 购买金币，金币提现等）")
    @TableField(value = "trade_remark")
    private String tradeRemark;

    @ApiModelProperty(value = "交易金额 单位  分")
    @TableField(value = "trade_coins")
    private Integer tradeCoins;

    @ApiModelProperty(value = "税收金额 单位  分")
    @TableField(value = "tax_coins")
    private Integer taxCoins;

    @ApiModelProperty(value = "实际操作金额 单位  分")
    @TableField(value = "actual_coins")
    private Integer actualCoins;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_datetime")
    private Date createDatetime;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_datetime")
    private Date updateDatetime;

    @ApiModelProperty(value = "关联的支付信息表id 或者  提现信息表id")
    @TableField(value = "associated_id")
    private String associatedId;

    @ApiModelProperty(value = "订单交易结果")
    @TableField(value = "trade_status")
    private Integer tradeStatus;

    public WytCurrencyTradeSerial() {
    }
}
